package com.mini.jdbc.ehcache;

import com.mini.jdbc.cache.ICache;

/**
 * @author sxjun
 * @author hgp
 *         EhCache.
 */
public class EhCache implements ICache {

    @Override
    public <T> T get(String cacheName, Object key) {
        return (T) CacheKit.get(cacheName, key);
    }

    @Override
    public void put(String cacheName, Object key, Object value) {
        CacheKit.put(cacheName, key, value);
    }

    @Override
    public void remove(String cacheName, Object key) {
        CacheKit.remove(cacheName, key);
    }

    @Override
    public void removeAll(String cacheName) {
        CacheKit.removeAll(cacheName);
    }
}


